/*
 *  txdnet.cn tonydon
 * 
 */
package cn.txdnet.txcms.query;

import cn.txdnet.txcms.dict.BooleanType;

/**
 *
 * @author txdnet
 */
public class ViewSiteListQuery extends BaseQuery{
    private static final long serialVersionUID = 5641206223304036980L;
    
    private Integer cid;
    
    private Byte pubstate;
    
    // cid所在cataloglevel
    private Integer cataloglevel;
    
    @Override
    public void filter() {
        this.pubstate = BooleanType.TRUE.getValue();
        if(this.getListsize()==null || this.getListsize()>256){
            this.setListsize(256);
        }
    }

    /**
     * @return the cid
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * @param cid the cid to set
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * @return the pubstate
     */
    public Byte getPubstate() {
        return pubstate;
    }

    /**
     * @param pubstate the pubstate to set
     */
    public void setPubstate(Byte pubstate) {
        this.pubstate = pubstate;
    }

    /**
     * @return the cataloglevel
     */
    public Integer getCataloglevel() {
        return cataloglevel;
    }

    /**
     * @param cataloglevel the cataloglevel to set
     */
    public void setCataloglevel(Integer cataloglevel) {
        this.cataloglevel = cataloglevel;
    }
    
}
